
=begin
  This class represents a Gadget Feature which is a set of behaviour implemented in
  JavaScript files.  Examples of features include 'opensocial' and 'tabs'.
=end
class GadgetFeature
  
  attr_accessor :name
  attr_accessor :libraries
  attr_accessor :dependencies
    
    
  def initialize(name, libraries)
    @name = name
    @libraries = libraries
  end
    
    
  def get_js_libs
    result = ''
    @libraries.each do |lib|
      result = result + '<script src="/javascripts/features/' + lib + '"></script>'
    end
    result
  end
  
end